package com.ruoyi.merchant.other.dto;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 生成优惠券二维码
 */
@Data
public class CouponQrCodeDto implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotBlank(message = "优惠券订单号不能为空")
    private String orderNo;

    @NotNull(message = "请联系商户设置优惠金额")
    @Min(value = 0, message = "优惠金额不能小于0")
    private BigDecimal amount;

    private Long v;

}
